package com.itheima.a01abstractdemo1;

public class Test {
    public static void main(String[] args) {
        //创建对象
        Dog d = new Dog("小华", 15);
        System.out.println("名字" + d.getName() + ", " + "年龄" + d.getAge());
        d.drink();
        d.eat();

    }
}
